package com.peas.platform.module.icims.contract.expenses.adapter.repository.po;

import java.util.*;
import java.math.*;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.peas.platform.common.core.annotation.Comment;
import com.peas.platform.framework.mybatisplus.po.BasePo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.ibatis.type.JdbcType;
import javax.validation.constraints.*;

// 合同支付单
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "`tbl_contract_outgoings`")
public class ContractOutgoingsPo extends BasePo {

    // 合同ID
    // 【初始合同表】
    @Comment(value = "合同ID")
    @TableField(value = "`contract_initial_id`", jdbcType = JdbcType.BIGINT)
    private Long contractInitialId;

    // 合同支付编码
    @Comment(value = "合同支付编码")
    @NotBlank(message = "合同支付编码不能为空")
    @Size(max = 20, message = "合同支付编码不能超过20个字符")
    @TableField(value = "`code`", jdbcType = JdbcType.VARCHAR)
    private String code;

    // 付款批次
    @Comment(value = "付款批次")
    @Size(max = 20, message = "付款批次不能超过20个字符")
    @TableField(value = "`batch_no`", jdbcType = JdbcType.VARCHAR)
    private String batchNo;

    // 收款单位
    @Comment(value = "收款单位")
    @Size(max = 200, message = "收款单位不能超过200个字符")
    @TableField(value = "`company`", jdbcType = JdbcType.VARCHAR)
    private String company;

    // 银行
    @Comment(value = "银行")
    @Size(max = 200, message = "银行不能超过200个字符")
    @TableField(value = "`bank`", jdbcType = JdbcType.VARCHAR)
    private String bank;

    // 银行账号
    @Comment(value = "银行账号")
    @Size(max = 200, message = "银行账号不能超过200个字符")
    @TableField(value = "`account`", jdbcType = JdbcType.VARCHAR)
    private String account;

    // 付款金额
    @Comment(value = "付款金额")
    @TableField(value = "`amount`", jdbcType = JdbcType.DECIMAL)
    private BigDecimal amount;

    // 状态
    @Comment(value = "状态")
    @Size(max = 20, message = "状态不能超过20个字符")
    @TableField(value = "`state`", jdbcType = JdbcType.VARCHAR)
    private String state;

    // 支付时间
    @Comment(value = "支付时间")
    @TableField(value = "`pay_time`", jdbcType = JdbcType.TIMESTAMP)
    private Date payTime;

    // 支付方式
    @Comment(value = "支付方式")
    @Size(max = 20, message = "支付方式不能超过20个字符")
    @TableField(value = "`pay_type`", jdbcType = JdbcType.VARCHAR)
    private String payType;

    // 银行流水号
    @Comment(value = "银行流水号")
    @Size(max = 200, message = "银行流水号不能超过200个字符")
    @TableField(value = "`transaction`", jdbcType = JdbcType.VARCHAR)
    private String transaction;

    // 备注
    @Comment(value = "备注")
    @TableField(value = "`remark`", jdbcType = JdbcType.CLOB)
    private String remark;

}
